<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
    
    <ui:composition template="/resources/templates/default.xhtml">
        <ui:define name="title">Logs</ui:define>
        <ui:define name="titlePage">Logs</ui:define>
        <ui:define name="cssStyle">
            
        </ui:define>
        <ui:define name="content">
            <p:layout>
                <p:layoutUnit position="center">
                    <p:panel header="Liste des sites">
                        <h:form>
                            <p:dataTable id="dataSites" value="#{topSitesBean.topsite}" var="ev">
                                <p:column headerText="IP">
                                    <h:outputText value="#{ev}"/>
                                </p:column>
                                <p:column headerText="NOM">
                                    <h:outputText value="#{ev.nom}"/>
                                </p:column>
                                <p:column headerText="PRENOM">
                                    <h:outputText value="#{ev.prenom}"/>
                                </p:column>
                                <p:column headerText="VISITES">
                                    <h:outputText value="#{ev.visites}" />
                                </p:column>
                            </p:dataTable>
                        </h:form>
                    </p:panel>
                </p:layoutUnit>
            </p:layout>
            
        </ui:define>

    </ui:composition>
</html>
